package com.atguigu.team.domain;

import com.atguigu.team.service.Status;

public class Designer extends Programmer{
    private double bonus;//奖金
    public Designer(){
    }
    public Designer(int id, String name, int salary, double bonus, Equipment equipment,int age){
        super(equipment, age, name, salary, id);
        this.bonus=bonus;
    }
    //set方法
    public void setBonus(double bonus) {
        this.bonus = bonus;
    }
    //get方法
    public double getBonus() {
        return bonus;
    }

    @Override
    public String toString() {
        return getDetails()+"\t设计师\t"+getStatus()+"\t"+getBonus()+"\t\t"+getEquipment().getDescription();
    }
    @Override
    public String getDetailsForTeam(){
        return getMemberId()+"/"+getId()+"\t"+getName()+"\t"+getAge()+"\t"+getSalary()+"\t"+"设计师\t"+getBonus();
    }
}
